//
//  HeadOneCollectionView.m
//  A手工客
//
//  Created by 萌萌的小坤坤 on 16/6/14.
//  Copyright © 2016年 冷坤. All rights reserved.
//

#import "HeadOneCollectionView.h"


@interface HeadOneCollectionView ()

@end

@implementation HeadOneCollectionView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatCollectionOne:frame];
    }
    return self;
}

- (void)creatCollectionOne:(CGRect)frame{
    self.imageViewPic = [[UIImageView alloc]initWithFrame:CGRectMake((frame.size.width - frame.size.width / 3) / 2, 10, frame.size.width / 3, frame.size.height / 5 * 2)];
//    self.imageViewPic.backgroundColor = [UIColor greenColor];
    [self.contentView addSubview:self.imageViewPic];
    [_imageViewPic release];
    
    self.labelName = [[UILabel alloc]initWithFrame:CGRectMake((frame.size.width - frame.size.width / 2) / 2, self.imageViewPic.frame.origin.y + self.imageViewPic.frame.size.height, frame.size.width / 2, frame.size.height / 5 * 1.5)];
    self.labelName.font = [UIFont systemFontOfSize:13.0];
    self.labelName.textAlignment = 1;
//    self.labelName.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.labelName];
    [_labelName release];
}
@end
